<include file="Public:headernew" />
<script type="text/javascript">
$(function(){
	$('#master_flash').flexslider({
		animation: "slide",
		direction:"horizontal",
		easing:"swing",
		slideshowSpeed: 5000,
		animationDuration:600
	});
	$('#master_menu').flexslider({
		animation: "slide",
		direction:"horizontal",
		easing:"swing",
		slideshow: false,
		slideshowSpeed: 5000,
		animationDuration:600
	});
});
function ShowAddress(){
	if($("#master_address").css("display")=="none"){
	  $("#master_address").show();
	}else{
		$("#master_address").hide();
	}
}
function HtmlAddress(html){
	$(".top_address a").html("["+html+"]");
	$("#master_address").hide();
}
</script>
<div id="master_flash">
  <ul class="slides">
  	<foreach name="banners" item="vo">
  		<li><img src="__PUBLIC__/images/banners/{$vo.banner_image}" /></li>
  	</foreach>
  </ul>
</div>
<div id="master_menu">
   <ul class="slides">
   <li>
   <foreach name="category" item="vo" key="k">
   		 <a href="{:U('Products/index')}?cid={$vo.categories_id}">
   		 	<img src="__PUBLIC__/images/categories/{$vo.categories_image}" width="90" height="90" />
   		 	<span>{$vo.categories_name}</span>
   		 </a>
   		<?php if(($k+1)%10==0&&$k!=0):?></li><li> <?php endif;?>
   </foreach>
   </li>   </ul>
   <div class="clear"></div>
</div>
<div id="master_body">
  <div class="main_notice"><span>网站公告 |</span>
 	 <foreach name="news" item="vo">
		<a href="{:U('News/detail')}?newsid={$vo.news_id}"><strong>最新:</strong>{$vo.news_title|msubstr=###,0,20}</a>
	 </foreach>	  
  </div>
  <script type="text/javascript">
  $(document).ready(function(e) {
  	 var allnum = $(".main_notice a").size();
	 var bunum = allnum;
	 setInterval(function(){
	    flashnum(allnum,bunum);
		bunum = bunum - 1;
		if(bunum <= 0){
			bunum = allnum;
		}
	 },5000)
	 function flashnum(allnum,bunum){
		    $(".main_notice a").hide();
			$(".main_notice a").eq(bunum-1).fadeIn(500);
	 }
  });
  </script>
  <div class="main_top_box">
   <table>
    <tr>
     <td rowspan="2"><a href=""><img src="__PUBLIC__/Catalog/nimages/body_36.png" /></a></td>
     <td colspan="2"><a href=""><img src="__PUBLIC__/Catalog/nimages/body_38.png" /></a></td>
     </tr>
    <tr>
     <td><a href=""><img src="__PUBLIC__/Catalog/nimages/body_44.png" /></a></td>
     <td><a href=""><img src="__PUBLIC__/Catalog/nimages/body_46.png" /></a></td>
    </tr>
  </table>
  </div>
  <div class="main_fen_x">
    <img src="__PUBLIC__/Catalog/nimages/body_51.png" />
  </div>
  <div class="main_list">
    <ul>
    <foreach name="productlist" item="vo">
    	<li>
	    	<a href="{:U('Products/detail')}?pid={$vo.products_id}"><img src="__PUBLIC__/images/products/thumb/s_{$vo.products_image}" /></a>
	    	<p class="m1">{$vo.products_name}</p>
	    	<p class="m2">￥{$vo.products_price}</p>
    	</li>
    </foreach>
    </ul>
    <div class="clear"></div>
  </div>
</div>
<!-- <link href="__PUBLIC__/Catalog/css/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
   <div class="title">上品生活</div>
   <div class="banner"><a href="{:U('Products/search')}"><img src="__PUBLIC__/Catalog/images/banner.png" /></a></div>
   <div class="categrouy">
       <div class="uls">
           <ul>
              <foreach name="category" item="vo">
              <li>
                 <dl>
                    <dd class="d1"><a href="{:U('Products/index')}?cid={$vo.categories_id}"><img src="__PUBLIC__/images/categories/{$vo.categories_image}" /></a></dd>
                    <dd class="d2"><a href="{:U('Products/index')}?cid={$vo.categories_id}">{$vo.categories_name}</a></dd>
                 </dl>
              </li>
              </foreach>
           </ul>
       </div>
       
   </div>
   
   <div class="message">
		<ul>
		 <foreach name="news" item="vo">
	   		<li><a href="{:U('News/detail')}?newsid={$vo.news_id}"><strong>公告:</strong>{$vo.news_title|msubstr=###,0,20}</a></li>
	   	</foreach>	 
		</ul>	    
   </div>
   <div class="products">
      <foreach name="productlist" item="vo">
       <div class="products_list">
           <table>
                
                 <tr bordercolor="#FF0000">
                    <td style="width:80px; height:70px;">
                    	<a href="{:U('Products/detail')}?pid={$vo.products_id}">
                    		<img src="__PUBLIC__/images/products/thumb/s_{$vo.products_image}" />
                    	</a>
                    </td>
                    <td style="width:190px; height:70px; padding-left: 5px;">
                        <dl class="dls">
                           <dt><a href="{:U('Products/detail')}?pid={$vo.products_id}" style="font-size:18px; color:#000;">{$vo.products_name}</a></dt>
                           <dd><a href="#" class="phone">{$vo.contact_tel}  {$vo.contact_person}&nbsp;成交量：{$vo.showcount}</a></dd>
                           <dd><a href="#" class="dingwei">{$vo.prov_name}-{$vo.city_name}</a></dd>
                           <dd><span class="time">{$vo.products_date_added}</span> <span class="what">{$vo.viewd}</span></dd>
                        </dl>
                    </td>
                    <td style="width:70px; height:70px;">
                           <p class="cc"><if condition="$vo['up_flag'] eq 1"><a href="#" class="ding"></a></if>
                           <if condition="$vo['jiaji_flag'] eq 1"><a href="#" class="ji"></a></if></p>
                    </td>
                </tr>
                
           </table>
       </div>
       </foreach>
   </div>
</div>
<script type="text/javascript"> 
	  function autoScroll(obj){  
			$(obj).find("ul").animate({  
				marginTop : "-39px"  
			},500,function(){  
				$(this).css({marginTop : "0px"}).find("li:first").appendTo(this);  
			})  
		}  
		$(function(){  
			setInterval('autoScroll(".message")',2000);
			  
		}) 
		
</script> 


 -->
 <include file="Public:footernew" />